<?php /* Smarty version Smarty-3.1.12, created on 2013-04-12 12:33:09
         compiled from "C:\wamp\www\cm\templates\navigation\technic.tpl" */ ?>
<?php /*%%SmartyHeaderCode:219905167ff0564acd3-79771899%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '0b5b7e6559c23684fafcaba473a45fc7c76d9814' => 
    array (
      0 => 'C:\\wamp\\www\\cm\\templates\\navigation\\technic.tpl',
      1 => 1365767106,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '219905167ff0564acd3-79771899',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'data' => 0,
    'client' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.12',
  'unifunc' => 'content_5167ff056f2561_12398068',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5167ff056f2561_12398068')) {function content_5167ff056f2561_12398068($_smarty_tpl) {?><script type="text/javascript">
    
    $(document).ready(function() {
        $('#checkRememberClient').click (function (){
            if ($(this).is (':checked')){
                rememberClientFilter(1);
            } else {
                rememberClientFilter(0);
            }
        });
    });
    
</script>
&nbsp;<br/>
<div class="navigWrapper">
    <table class="mainNavig">
        <tr>
            <td class="tdleft">
                <a class="mainNavigA" href="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
?input=list_of_tasks">Tasks</a>
            </td>
            <td class="tdcenter">
                &nbsp;
            </td>
            <td class="tdright">
                <a class="mainNavigA" href="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
?input=add_task">+</a>
            </td>
        </tr>
        <tr>
            <td class="empty" colspan="3"></td>
        </tr>
        <tr>
            <td class="tdleft">
                <a class="mainNavigA" href="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
?input=timesheets">TSDR</a>
            </td>
            <td class="tdcenter">
                &nbsp;
            </td>
            <td class="tdright">
                <a class="mainNavigA" href="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
?input=timesheets&add=new">+</a>
            </td>
        </tr>
        <tr>
            <td class="empty" colspan="3"></td>
        </tr>
        <tr>
            <td class="tdleft">
                <a class="mainNavigA" href="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
?input=state_of_cash">Cash</a>
            </td>
            <td class="tdcenter">
                &nbsp;
            </td>
            <td class="tdright">
                <a class="mainNavigA" href="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
?input=add_entry">+</a>
            </td>
        </tr>
        <tr>
            <td class="empty" colspan="3"></td>
        </tr>
        <tr>
            <td class="tdleft" colspan="3">
                <a class="mainNavigA" href="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
?input=list_of_clients">Lists</a>
            </td>
        </tr>
        <tr>
            <td class="empty" colspan="3"></td>
        </tr>
        <tr>
            <td class="tdleft" colspan="3">
                <a class="mainNavigA" href="<?php echo $_smarty_tpl->tpl_vars['data']->value['root'];?>
?input=reports">Reports</a>
            </td>
        </tr>
    </table>
</div>
<div class="navigTools">
    <table>
        <tr>
            <td colspan="2">
                <select id="hardClientFilter" size="1" onchange="changeClientFilter(this.value, 'checkRememberClient')">
                    <option value="0">Show all clients</option>
                    <?php  $_smarty_tpl->tpl_vars['client'] = new Smarty_Variable; $_smarty_tpl->tpl_vars['client']->_loop = false;
 $_smarty_tpl->tpl_vars['key'] = new Smarty_Variable;
 $_from = $_smarty_tpl->tpl_vars['data']->value['clients']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars['client']->key => $_smarty_tpl->tpl_vars['client']->value){
$_smarty_tpl->tpl_vars['client']->_loop = true;
 $_smarty_tpl->tpl_vars['key']->value = $_smarty_tpl->tpl_vars['client']->key;
?>
                        <option <?php if ($_smarty_tpl->tpl_vars['client']->value['klient_id']==$_SESSION['user']['clientFilter']){?>selected="selected"<?php }?> value="<?php echo $_smarty_tpl->tpl_vars['client']->value['klient_id'];?>
"><?php echo $_smarty_tpl->tpl_vars['client']->value['name'];?>
</option>
                    <?php } ?>
                </select>
            </td>
        </tr>
        <tr>
            <td style="padding-left: 5px;"><label for="checkRememberClient">Remember client</label></td>
            <td>
                <input type="checkbox" value="1" id="checkRememberClient" <?php if (isset($_SESSION['user']['rememberClientFilter'])){?>checked="checked"<?php }?> />
            </td>
        </tr>

    </table>
</div>
            <?php }} ?>